package com.woniuxy.daos;

import com.woniuxy.entitys.TbCustomer;
import com.woniuxy.entitys.TbCustomerExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbCustomerDao {
    long countByExample(TbCustomerExample example);

    int deleteByExample(TbCustomerExample example);

    int deleteByPrimaryKey(Integer cid);

    int insert(TbCustomer record);

    int insertSelective(TbCustomer record);

    List<TbCustomer> selectByExample(TbCustomerExample example);

    TbCustomer selectByPrimaryKey(Integer cid);

    int updateByExampleSelective(@Param("record") TbCustomer record, @Param("example") TbCustomerExample example);

    int updateByExample(@Param("record") TbCustomer record, @Param("example") TbCustomerExample example);

    int updateByPrimaryKeySelective(TbCustomer record);

    int updateByPrimaryKey(TbCustomer record);

    List<TbCustomer> selectAll();

    List<TbCustomer> selOneByTel(@Param("tel") String telphoneCondition);

    List<TbCustomer> selByCondition(@Param("beginTime") Date beginTime,@Param("endTime") Date endTime,@Param("radio") Integer radio);

    List<TbCustomer> selByRadio(@Param("radio") Integer radio);

    TbCustomer selectByPhone(String phone);

}